package com.ytc.restcontroller;

import com.ytc.mapper.ReportMapper;
import com.ytc.model.Report;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 详细介绍类情况.
 *
 * @ClassName ReportServiceImpl
 * @Author zk
 * @Date 2023/1/25
 * @Version 1.0
 */
@RestController
public class ReportServiceImpl {

    @Autowired
    private ReportMapper reportMapper;

    //张阔：新增举报
    @RequestMapping("addReport")
    public void addReport(@RequestBody Report report){
        reportMapper.addReport(report);
    }
}
